fix: Remove shard_id from the Parquet File protobuf in the catalog service

pull/24376/head
Carol (Nichols || Goulding) 2023-02-17 12:59:09 -05:00
parent 20250d883e
commit 65ba208f88
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
4 changed files with 2 additions and 6 deletions

View File

@ -7,11 +7,11 @@ message ParquetFile {
reserved "min_sequence_number";
reserved 2;
reserved "sequencer_id";
reserved 17;
reserved "shard_id";
// the id of the file in the catalog
int64 id = 1;
// the shard that sequenced writes for this file
int64 shard_id = 17;
// the namespace id
int64 namespace_id = 3;
// the table id

View File

@ -568,7 +568,6 @@ mod tests {
partition_mapping,
vec![ParquetFile {
id: 98,
shard_id: 100,
namespace_id: 100,
table_id: 100,
partition_id: 100,

View File

@ -268,7 +268,6 @@ async fn remote_partition_and_get_from_store_and_pull() {
// Looks like:
// {
// "id": "1",
// "shardId": 1,
// "namespaceId": 1,
// "tableId": 1,
// "partitionId": "1",
@ -292,7 +291,6 @@ async fn remote_partition_and_get_from_store_and_pull() {
.success()
.stdout(
predicate::str::contains(r#""id": "1""#)
.and(predicate::str::contains(r#""shardId": "1","#))
.and(predicate::str::contains(r#""partitionId": "1","#)),
)
.get_output()

View File

@ -168,7 +168,6 @@ impl catalog_service_server::CatalogService for CatalogService {
fn to_parquet_file(p: data_types::ParquetFile) -> ParquetFile {
ParquetFile {
id: p.id.get(),
shard_id: p.shard_id.get(),
namespace_id: p.namespace_id.get(),
table_id: p.table_id.get(),
partition_id: p.partition_id.get(),