[
https://issues.apache.org/jira/browse/PHOENIX-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Istvan Toth resolved PHOENIX-7034.
----------------------------------
Fix Version/s: 5.2.0
5.1.4
Release Note: Phoenix no longer allows allow creating mapped views on
Hbase tables whoose namespace is not defined in Phoenix when namespace mapping
is enabled.
Resolution: Fixed
Committed to master and 5.1
Thanks for the patch [~ameszaros].
> Disallow mapped view creation when the schema does not exists
> -------------------------------------------------------------
>
> Key: PHOENIX-7034
> URL: https://issues.apache.org/jira/browse/PHOENIX-7034
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 5.2.0, 5.1.3
> Reporter: Richárd Antal
> Assignee: Aron Attila Meszaros
> Priority: Major
> Fix For: 5.2.0, 5.1.4
>
>
> Currently it is possible to create a mapped view on an HBase table even if
> the schema is not created in phoenix.
> We should throw a schema does not exists error similarly to the table
> creation.
> Steps to repro:
> hbase shell
> {noformat}
> create_namespace 'T'
> create 'T:T1’, {NAME => 'f1', VERSIONS => 5}
> put 'T:T1', '1', 'f1:lastname', 'Foo'
> {noformat}
> phoenix-sqlline
> {noformat}
> CREATE VIEW "T.T1" ( pk VARCHAR PRIMARY KEY, "f1"."lastname" VARCHAR
> );{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)