beinan opened a new pull request, #8825:
URL: https://github.com/apache/gravitino/pull/8825

   ### What changes were proposed in this pull request?
   
     - add the new lance-common and lance-rest-server modules that bootstrap a 
minimal Lance catalog REST facade backed by in-memory state
     - introduce REST resources (LanceCatalogOperations, 
LanceMetadataOperations) plus a GravitinoLanceRESTServer entry point and 
auxiliary service wiring
     - package assets for the Lance REST server (config + startup script) and 
hook the module into Gradle distribution/standalone tarball tasks with checksums
     - extend build dependencies (SLF4J, Dropwizard metrics, Prometheus bridge) 
so the service runs using existing Gravitino telemetry components
     - surface scaffolding build.gradle.kts under lance/ to disable blanket 
task execution and ensure module resolution
   
     ### Why are the changes needed?
   
     - the Lance integration needs a thin REST façade to iterate on metadata 
APIs before the backend is available; this scaffolding mirrors the Iceberg REST
       flow
     - distribution packaging must include the new service so it can be 
assembled, tested, and deployed alongside other Gravitino auxiliaries
   
     Fix: #N/A
   
     ### Does this PR introduce any user-facing change?
   
     - new Lance REST server tarball and config/script templates shipped with 
the distribution
     - new REST endpoints under /lance/v1/... exposing catalog metadata 
(namespaces, tables)
     - no breaking changes to existing services
   
     ### How was this patch tested?
   
     - ./gradlew :lance:lance-rest-server:build
     - started the service locally with java -cp 
lance/lance-rest-server/build/libs/* ...GravitinoLanceRESTServer 
/tmp/gravitino-lance-rest-server.conf
     - curl http://127.0.0.1:9101/lance/v1/catalog
     - curl http://127.0.0.1:9101/lance/v1/catalog/namespaces
     - curl 
"http://127.0.0.1:9101/lance/v1/metadata/table?namespace=default&name=sample_table";
     - curl -X POST http://127.0.0.1:9101/lance/v1/catalog/namespaces -H 
'Content-Type: application/json' -d '{"namespace":"demo"}'
     - curl -X DELETE http://127.0.0.1:9101/lance/v1/catalog/namespaces/demo


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to