[jira] [Work logged] (HIVE-25343) Create or replace view should clean the old table properties

2021-09-29 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot logged work on HIVE-25343:
-

Author: ASF GitHub Bot
Created on: 30/Sep/21 00:09
Start Date: 30/Sep/21 00:09
Worklog Time Spent: 10m 
  Work Description: github-actions[bot] closed pull request #2492:
URL: https://github.com/apache/hive/pull/2492


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 657647)
Time Spent: 50m  (was: 40m)

> Create or replace view should clean the old table properties
> 
>
> Key: HIVE-25343
> URL: https://issues.apache.org/jira/browse/HIVE-25343
> Project: Hive
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.1.3, 3.2.0
>Reporter: Lantao Jin
>Assignee: Lantao Jin
>Priority: Major
>  Labels: pull-request-available
> Attachments: Screen Shot 2021-07-19 at 15.36.29.png
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> In many cases, users use Spark and Hive together. When a user creates a view 
> via Spark, the table output columns will store in table properties, such as 
>  !Screen Shot 2021-07-19 at 15.36.29.png|width=80%!
> After that, if the user runs the command "create or replace view" via Hive, 
> to change the schema. The old table properties added by Spark are not cleaned 
> by Hive. Then users read the table via Spark. The schema didn't change. It 
> very confused users.
> How to reproduce:
> {code}
> spark-sql>create table lajin_table (a int, b int) stored as parquet;
> spark-sql>create view lajin_view as select * from lajin_table;
> spark-sql> desc lajin_view;
> a   int NULLNULL
> b   int NULLNULL
> hive>desc lajin_view;
> a   int 
> b   int
> hive>create or replace view lajin_view as select a, b, 3 as c from 
> lajin_table;
> hive>desc lajin_view;
> a   int 
> b   int 
> c   int
> spark-sql> desc lajin_view; -- not changed
> a   int NULLNULL
> b   int NULLNULL
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (HIVE-25343) Create or replace view should clean the old table properties

2021-09-28 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot logged work on HIVE-25343:
-

Author: ASF GitHub Bot
Created on: 29/Sep/21 00:10
Start Date: 29/Sep/21 00:10
Worklog Time Spent: 10m 
  Work Description: github-actions[bot] closed pull request #2492:
URL: https://github.com/apache/hive/pull/2492


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 656953)
Time Spent: 40m  (was: 0.5h)

> Create or replace view should clean the old table properties
> 
>
> Key: HIVE-25343
> URL: https://issues.apache.org/jira/browse/HIVE-25343
> Project: Hive
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.1.3, 3.2.0
>Reporter: Lantao Jin
>Assignee: Lantao Jin
>Priority: Major
>  Labels: pull-request-available
> Attachments: Screen Shot 2021-07-19 at 15.36.29.png
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> In many cases, users use Spark and Hive together. When a user creates a view 
> via Spark, the table output columns will store in table properties, such as 
>  !Screen Shot 2021-07-19 at 15.36.29.png|width=80%!
> After that, if the user runs the command "create or replace view" via Hive, 
> to change the schema. The old table properties added by Spark are not cleaned 
> by Hive. Then users read the table via Spark. The schema didn't change. It 
> very confused users.
> How to reproduce:
> {code}
> spark-sql>create table lajin_table (a int, b int) stored as parquet;
> spark-sql>create view lajin_view as select * from lajin_table;
> spark-sql> desc lajin_view;
> a   int NULLNULL
> b   int NULLNULL
> hive>desc lajin_view;
> a   int 
> b   int
> hive>create or replace view lajin_view as select a, b, 3 as c from 
> lajin_table;
> hive>desc lajin_view;
> a   int 
> b   int 
> c   int
> spark-sql> desc lajin_view; -- not changed
> a   int NULLNULL
> b   int NULLNULL
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (HIVE-25343) Create or replace view should clean the old table properties

2021-09-17 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot logged work on HIVE-25343:
-

Author: ASF GitHub Bot
Created on: 18/Sep/21 00:09
Start Date: 18/Sep/21 00:09
Worklog Time Spent: 10m 
  Work Description: github-actions[bot] commented on pull request #2492:
URL: https://github.com/apache/hive/pull/2492#issuecomment-922142334


   This pull request has been automatically marked as stale because it has not 
had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the d...@hive.apache.org list if the patch is in 
need of reviews.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 652509)
Time Spent: 0.5h  (was: 20m)

> Create or replace view should clean the old table properties
> 
>
> Key: HIVE-25343
> URL: https://issues.apache.org/jira/browse/HIVE-25343
> Project: Hive
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.1.3, 3.2.0
>Reporter: Lantao Jin
>Assignee: Lantao Jin
>Priority: Major
>  Labels: pull-request-available
> Attachments: Screen Shot 2021-07-19 at 15.36.29.png
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> In many cases, users use Spark and Hive together. When a user creates a view 
> via Spark, the table output columns will store in table properties, such as 
>  !Screen Shot 2021-07-19 at 15.36.29.png|width=80%!
> After that, if the user runs the command "create or replace view" via Hive, 
> to change the schema. The old table properties added by Spark are not cleaned 
> by Hive. Then users read the table via Spark. The schema didn't change. It 
> very confused users.
> How to reproduce:
> {code}
> spark-sql>create table lajin_table (a int, b int) stored as parquet;
> spark-sql>create view lajin_view as select * from lajin_table;
> spark-sql> desc lajin_view;
> a   int NULLNULL
> b   int NULLNULL
> hive>desc lajin_view;
> a   int 
> b   int
> hive>create or replace view lajin_view as select a, b, 3 as c from 
> lajin_table;
> hive>desc lajin_view;
> a   int 
> b   int 
> c   int
> spark-sql> desc lajin_view; -- not changed
> a   int NULLNULL
> b   int NULLNULL
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (HIVE-25343) Create or replace view should clean the old table properties

2021-07-20 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot logged work on HIVE-25343:
-

Author: ASF GitHub Bot
Created on: 20/Jul/21 09:45
Start Date: 20/Jul/21 09:45
Worklog Time Spent: 10m 
  Work Description: LantaoJin opened a new pull request #2492:
URL: https://github.com/apache/hive/pull/2492


   …ties
   
   
   
   ### What changes were proposed in this pull request?
   
   
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   
   
   ### How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 624952)
Time Spent: 20m  (was: 10m)

> Create or replace view should clean the old table properties
> 
>
> Key: HIVE-25343
> URL: https://issues.apache.org/jira/browse/HIVE-25343
> Project: Hive
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.1.3, 3.2.0
>Reporter: Lantao Jin
>Assignee: Lantao Jin
>Priority: Major
>  Labels: pull-request-available
> Attachments: Screen Shot 2021-07-19 at 15.36.29.png
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In many cases, users use Spark and Hive together. When a user creates a view 
> via Spark, the table output columns will store in table properties, such as 
>  !Screen Shot 2021-07-19 at 15.36.29.png|width=80%!
> After that, if the user runs the command "create or replace view" via Hive, 
> to change the schema. The old table properties added by Spark are not cleaned 
> by Hive. Then users read the table via Spark. The schema didn't change. It 
> very confused users.
> How to reproduce:
> {code}
> spark-sql>create table lajin_table (a int, b int) stored as parquet;
> spark-sql>create view lajin_view as select * from lajin_table;
> spark-sql> desc lajin_view;
> a   int NULLNULL
> b   int NULLNULL
> hive>desc lajin_view;
> a   int 
> b   int
> hive>create or replace view lajin_view as select a, b, 3 as c from 
> lajin_table;
> hive>desc lajin_view;
> a   int 
> b   int 
> c   int
> spark-sql> desc lajin_view; -- not changed
> a   int NULLNULL
> b   int NULLNULL
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (HIVE-25343) Create or replace view should clean the old table properties

2021-07-19 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot logged work on HIVE-25343:
-

Author: ASF GitHub Bot
Created on: 19/Jul/21 09:11
Start Date: 19/Jul/21 09:11
Worklog Time Spent: 10m 
  Work Description: LantaoJin opened a new pull request #2492:
URL: https://github.com/apache/hive/pull/2492


   …ties
   
   
   
   ### What changes were proposed in this pull request?
   
   
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   
   
   ### How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

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

> Create or replace view should clean the old table properties
> 
>
> Key: HIVE-25343
> URL: https://issues.apache.org/jira/browse/HIVE-25343
> Project: Hive
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 3.1.3, 3.2.0
>Reporter: Lantao Jin
>Assignee: Lantao Jin
>Priority: Major
> Attachments: Screen Shot 2021-07-19 at 15.36.29.png
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In many cases, users use Spark and Hive together. When a user creates a view 
> via Spark, the table output columns will store in table properties, such as 
>  !Screen Shot 2021-07-19 at 15.36.29.png|width=80!
> After that, if the user runs the command "create or replace view" via Hive, 
> to change the schema. The old table properties added by Spark are not cleaned 
> by Hive. Then users read the table via Spark. The schema didn't change. It 
> very confused users.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)