Bug #35210 Can't filter Falcon Tables by TableSpaces at command-line
Description:
Which is the difference beetwen `information_schema`.`falcon_tables`.`table_name` and `information_schema`.`falcon_tables`.`internal_name`?
The column `information_schema`.`falcon_tables`.`internal_name` has been added in ver. 6.0.4-alpha.
mysql> select * from falcon_tables\G
*************************** 1. row ***************************
SCHEMA_NAME: FALCON_DB
TABLE_NAME: TABLE1
PARTITION:
TABLESPACE: FALCON_USER
INTERNAL_NAME: TABLE1
*************************** 2. row ***************************
SCHEMA_NAME: FALCON_DB
TABLE_NAME: TABLE2
PARTITION:
TABLESPACE: falcon_tablespace1
INTERNAL_NAME: TABLE2
*************************** 3. row ***************************
SCHEMA_NAME: FALCON_DB
TABLE_NAME: TABLE2@0023
PARTITION:
TABLESPACE: falcon_tablespace1
INTERNAL_NAME: TABLE2@0023
*************************** 4. row ***************************
SCHEMA_NAME: FALCON_DB
TABLE_NAME: TEST@0021TABLE
PARTITION:
TABLESPACE: falcon_tablespace1
INTERNAL_NAME: TEST@0021TABLE
4 rows in set (0.00 sec)
I was hoping for a new column that allows me to filter falcon tables by tablespaces in a simplier way!
Please, try answer at the following question: "Which are the falcon tables that are using a particular Tablespace?"
SELECT DISTINCT `tablespace` FROM `information_schema`.`FALCON_TABLES`;
SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `information_schema`.`FALCON_TABLES` WHERE `tablespace` = 'falcon_tablespace1';
SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `information_schema`.`FALCON_TABLES` WHERE `tablespace` = 'FALCON_USER';
mysql> SELECT DISTINCT `tablespace` FROM `information_schema`.`FALCON_TABLES`;
+--------------------+
| tablespace |
+--------------------+
| FALCON_USER |
| falcon_tablespace1 |
+--------------------+
2 rows in set (0.00 sec)
mysql> SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `inform
ation_schema`.`FALCON_TABLES` WHERE `tablespace` = 'falcon_tablespace1';
+----------------+----------------+-------------+
| table_name | internal_name | schema_name |
+----------------+----------------+-------------+
| TABLE2 | TABLE2 | FALCON_DB |
| TABLE2@0023 | TABLE2@0023 | FALCON_DB |
| TEST@0021TABLE | TEST@0021TABLE | FALCON_DB |
+----------------+----------------+-------------+
3 rows in set (0.02 sec)
As you can easly see, I can't answer immediately using the command-line: I need to do a parsing of the column `table_name` (or `internal_name`) at software level.
The software, returns me
table2 --> table2
TABLE2@0023 --> table2#
TEST@0021TABLE --> test!table
Now, it's not difficult having such a function at software-level, but please add a new `parsed_name` column in `information_schema`.`falcon_tables` or deny the possibility to use in table names special characters that need a parsing (!,#, ...).
Thanks.
How to repeat:
See above.
Suggested fix:
See above.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: Which is the difference beetwen `information_schema`.`falcon_tables`.`table_name` and `information_schema`.`falcon_tables`.`internal_name`? The column `information_schema`.`falcon_tables`.`internal_name` has been added in ver. 6.0.4-alpha. mysql> select * from falcon_tables\G *************************** 1. row *************************** SCHEMA_NAME: FALCON_DB TABLE_NAME: TABLE1 PARTITION: TABLESPACE: FALCON_USER INTERNAL_NAME: TABLE1 *************************** 2. row *************************** SCHEMA_NAME: FALCON_DB TABLE_NAME: TABLE2 PARTITION: TABLESPACE: falcon_tablespace1 INTERNAL_NAME: TABLE2 *************************** 3. row *************************** SCHEMA_NAME: FALCON_DB TABLE_NAME: TABLE2@0023 PARTITION: TABLESPACE: falcon_tablespace1 INTERNAL_NAME: TABLE2@0023 *************************** 4. row *************************** SCHEMA_NAME: FALCON_DB TABLE_NAME: TEST@0021TABLE PARTITION: TABLESPACE: falcon_tablespace1 INTERNAL_NAME: TEST@0021TABLE 4 rows in set (0.00 sec) I was hoping for a new column that allows me to filter falcon tables by tablespaces in a simplier way! Please, try answer at the following question: "Which are the falcon tables that are using a particular Tablespace?" SELECT DISTINCT `tablespace` FROM `information_schema`.`FALCON_TABLES`; SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `information_schema`.`FALCON_TABLES` WHERE `tablespace` = 'falcon_tablespace1'; SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `information_schema`.`FALCON_TABLES` WHERE `tablespace` = 'FALCON_USER'; mysql> SELECT DISTINCT `tablespace` FROM `information_schema`.`FALCON_TABLES`; +--------------------+ | tablespace | +--------------------+ | FALCON_USER | | falcon_tablespace1 | +--------------------+ 2 rows in set (0.00 sec) mysql> SELECT DISTINCT `table_name`, `internal_name`, `schema_name` FROM `inform ation_schema`.`FALCON_TABLES` WHERE `tablespace` = 'falcon_tablespace1'; +----------------+----------------+-------------+ | table_name | internal_name | schema_name | +----------------+----------------+-------------+ | TABLE2 | TABLE2 | FALCON_DB | | TABLE2@0023 | TABLE2@0023 | FALCON_DB | | TEST@0021TABLE | TEST@0021TABLE | FALCON_DB | +----------------+----------------+-------------+ 3 rows in set (0.02 sec) As you can easly see, I can't answer immediately using the command-line: I need to do a parsing of the column `table_name` (or `internal_name`) at software level. The software, returns me table2 --> table2 TABLE2@0023 --> table2# TEST@0021TABLE --> test!table Now, it's not difficult having such a function at software-level, but please add a new `parsed_name` column in `information_schema`.`falcon_tables` or deny the possibility to use in table names special characters that need a parsing (!,#, ...). Thanks. How to repeat: See above. Suggested fix: See above.