@@ -121,13 +121,13 @@ private ParquetMetadataFileLayout(
121121 if (inputInstructions .getTableDefinition ().isEmpty ()) {
122122 // Infer the definition from the metadata file
123123 final Pair <List <ColumnDefinition <?>>, ParquetInstructions > leafSchemaInfo =
124- convertSchema (metadataFileMetadata . getFileMetaData () , inputInstructions );
124+ convertSchema (metadataFileMetadata , inputInstructions );
125125 if (channelsProvider .exists (commonMetadataFileURI )) {
126126 // Infer the partitioning columns using the common metadata file
127127 final ParquetFileReader commonMetadataFileReader =
128128 ParquetFileReader .create (commonMetadataFileURI , channelsProvider );
129- final Pair <List <ColumnDefinition <?>>, ParquetInstructions > fullSchemaInfo = convertSchema (
130- commonMetadataFileReader .getMetadata (). getFileMetaData (), leafSchemaInfo .getSecond ());
129+ final Pair <List <ColumnDefinition <?>>, ParquetInstructions > fullSchemaInfo =
130+ convertSchema ( commonMetadataFileReader .getMetadata (), leafSchemaInfo .getSecond ());
131131 final Collection <ColumnDefinition <?>> adjustedColumnDefinitions = new ArrayList <>();
132132 final Map <String , ColumnDefinition <?>> leafDefinitionsMap =
133133 leafSchemaInfo .getFirst ().stream ()
@@ -230,15 +230,14 @@ private ParquetMetadataFileLayout(
230230 }
231231
232232 private static Pair <List <ColumnDefinition <?>>, ParquetInstructions > convertSchema (
233- FileMetaData fileMetadata ,
233+ ParquetMetadata metadata ,
234234 @ NotNull ParquetInstructions readInstructionsIn ) {
235235 return ParquetSchemaReader .convertSchema (
236- fileMetadata .getSchema (),
237- fileMetadata .getKeyValueMetaData (),
236+ metadata . getFileMetaData () .getSchema (),
237+ metadata . getFileMetaData () .getKeyValueMetaData (),
238238 readInstructionsIn );
239239 }
240240
241-
242241 /**
243242 * This method takes the {@link ParquetMetadata} from the metadata file, extracts the key-value metadata specific to
244243 * the provided file, and creates a new {@link ParquetMetadata} for this file.
0 commit comments