You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/01/06 17:15:00 UTC

[jira] [Work logged] (HIVE-26687) INSERT query with array type failing with SemanticException

     [ https://issues.apache.org/jira/browse/HIVE-26687?focusedWorklogId=837522&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-837522 ]

ASF GitHub Bot logged work on HIVE-26687:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jan/23 17:14
            Start Date: 06/Jan/23 17:14
    Worklog Time Spent: 10m 
      Work Description: manthanmtg opened a new pull request, #3923:
URL: https://github.com/apache/hive/pull/3923

   ### What changes were proposed in this pull request?
   Array type should handle implicit conversion
   
   
   ### Why are the changes needed?
   The queries were throwing SemanticException
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Tested locally, added a qfile for the same in the patch
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 837522)
    Remaining Estimate: 0h
            Time Spent: 10m

> INSERT query with array<smallint> type failing with SemanticException
> ---------------------------------------------------------------------
>
>                 Key: HIVE-26687
>                 URL: https://issues.apache.org/jira/browse/HIVE-26687
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 4.0.0
>            Reporter: Manthan B Y
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> *Steps to reproduce:*
> {code:java}
> DROP TABLE IF EXISTS default.tbl_oGSJ;
> CREATE TABLE default.tbl_oGSJ (c1 array<smallint>);
> INSERT INTO default.tbl_oGSJ(c1) VALUES (array(55,54)); {code}
> *Error:*
> {code:java}
> Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Cannot insert into target table because column number/types are different 'TOK_TMP_FILE': Cannot convert column 0 from array<int> to array<smallint>. (state=42000,code=40000) {code}
> The same is the case for bigint, tinyint as well



--
This message was sent by Atlassian Jira
(v8.20.10#820010)