Metadata schema in rootschema

This change is already in julianhyde/optiq. We need this change to merge DRILL-558.