Version: 6.0-SNAPSHOT
Meta-information about Mappings
You can find more information about existing mappings such as the column names and their SQL data types using the information_schema tables.
-
Create a mapping to a map called
myMappingName.sqlCREATE MAPPING myMappingNameTYPE IMapOPTIONS ('keyFormat'='varchar','valueFormat'='int'); -
Get the name of all mappings.
sqlSHOW MAPPINGS;You should see the name of the mapping.
+--------------------+|name |+--------------------+|myMappingName |+--------------------+ -
Get more information about the mapping.
sqlSELECT * FROM information_schema.mappingsWHERE table_name = 'myMappingName';The name of the mapping is stored in the
table_namecolumn. Currently, all mappings are part of thepublicschema in thehazelcasttable catalog. -
Get information about the column names and the columns' SQL data types.
sqlSELECT * FROM information_schema.columnsWHERE table_name = 'myMappingName';
Next Steps
See the SQL statements that you can use to manage your mappings.