Namespaces in phoenix can be similar to library names in Mysql. By default, the created tables are in the default namespace.
1. Enable namespace mapping parameters
1) phoenix.schema.isNamespaceMappingEnabled: The default is false. If it is enabled, the table created using the schema will be mapped to the namespace. This needs to be set on both the client and server side. If set once, it should not be rolled back. Legacy clients will not work when this property is enabled.
2) phoenix.schema.mapSystemTablesToNamespace: default true, if it starts, the system table will be automatically migrated to the SYSTEM namespace. If set to false, system tables will be created in the default namespace. It needs to be set on both client and server.
2. Mode interaction
https://phoenix.apache.org/language/index.html#create_schema
3. Create a table specifying the mode
CREATE TABLE my_schema.my_table ( id BIGINT not null primary key, date Date)
4. Delete the table in the mode
DROP TABLE my_schema.my_table;