You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Shivram Mani (JIRA)" <ji...@apache.org> on 2016/02/10 22:36:18 UTC
[jira] [Updated] (HAWQ-405) Issue with handling pg_temp schema
[ https://issues.apache.org/jira/browse/HAWQ-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shivram Mani updated HAWQ-405:
------------------------------
Description:
We aren't handling the temp namespace the right way when LookupNamespaceId is invoked. This is blocking
Steps to reproduce error
Reproduction 1: invalid reference to FROM-clause entry for table
```
create table pg_temp.test(row integer, count integer);
insert into pg_temp.test values (1, 10), (2, 20), (3, 30);
select avg(pg_temp.test.count) from pg_temp.test;
ERROR: invalid reference to FROM-clause entry for table "test"
LINE 1: select avg(pg_temp.test.count) from pg_temp.test;
^
```
Reproduction 2: missing FROM-clause entry for table
```
select case when pg_temp.test.count = 30 then 30 when pg_temp.test.count = 20 then 20 else 10 end;
ERROR: missing FROM-clause entry for table "test"
LINE 1: select case when pg_temp.test.count = 30 then 30 when pg_tem...
```
was:
We aren't handling the temp namespace the right way when LookupNamespaceId is invoked.
Steps to reproduce error
Reproduction 1: invalid reference to FROM-clause entry for table
```
create table pg_temp.test(row integer, count integer);
insert into pg_temp.test values (1, 10), (2, 20), (3, 30);
select avg(pg_temp.test.count) from pg_temp.test;
ERROR: invalid reference to FROM-clause entry for table "test"
LINE 1: select avg(pg_temp.test.count) from pg_temp.test;
^
```
Reproduction 2: missing FROM-clause entry for table
```
select case when pg_temp.test.count = 30 then 30 when pg_temp.test.count = 20 then 20 else 10 end;
ERROR: missing FROM-clause entry for table "test"
LINE 1: select case when pg_temp.test.count = 30 then 30 when pg_tem...
```
> Issue with handling pg_temp schema
> ----------------------------------
>
> Key: HAWQ-405
> URL: https://issues.apache.org/jira/browse/HAWQ-405
> Project: Apache HAWQ
> Issue Type: Bug
> Components: Hcatalog, PXF
> Reporter: Shivram Mani
> Assignee: Goden Yao
>
> We aren't handling the temp namespace the right way when LookupNamespaceId is invoked. This is blocking
> Steps to reproduce error
> Reproduction 1: invalid reference to FROM-clause entry for table
> ```
> create table pg_temp.test(row integer, count integer);
> insert into pg_temp.test values (1, 10), (2, 20), (3, 30);
> select avg(pg_temp.test.count) from pg_temp.test;
> ERROR: invalid reference to FROM-clause entry for table "test"
> LINE 1: select avg(pg_temp.test.count) from pg_temp.test;
> ^
> ```
> Reproduction 2: missing FROM-clause entry for table
> ```
> select case when pg_temp.test.count = 30 then 30 when pg_temp.test.count = 20 then 20 else 10 end;
> ERROR: missing FROM-clause entry for table "test"
> LINE 1: select case when pg_temp.test.count = 30 then 30 when pg_tem...
> ```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)