You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "devillove084 (via GitHub)" <gi...@apache.org> on 2024/08/13 15:39:55 UTC
Re: [I] Implement ManifestFileMeta test fixtures [paimon-rust]
devillove084 commented on issue #54:
URL: https://github.com/apache/paimon-rust/issues/54#issuecomment-2286559124
``` java
package org.apache.paimon.manifest;
import org.apache.paimon.types.RowType;
import org.junit.jupiter.api.Test;
import java.io.File;
public class ManifestFileMetaJsonTest {
@Test
void testGenerateManifestFileMetaSchemaJson() {
// static method
RowType schema = ManifestFileMeta.schema();
String directoryPath = "/tmp/fixtures";
String fileName = "manifest_file_meta_schema.json";
File directory = new File(directoryPath);
if (!directory.exists()) {
directory.mkdirs();
}
String filePath = directoryPath + "/" + fileName;
JsonUtil.writeDataTypeToJson(schema, filePath);
System.out.println("Generated JSON for ManifestFileMeta schema: " + filePath);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org