[NO ISSUE][FAIL] Replace MetadataException by AlgebricksException in APIs