fix: Validating the schema in ingester tests isn't necessary

The router validates schemas; schema validation shouldn't be tested in
the ingester
pull/24376/head
Carol (Nichols || Goulding) 2022-11-16 16:32:18 -05:00
parent c7b9866483
commit b6286767b0
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 3 additions and 9 deletions

View File

@ -328,13 +328,13 @@ mod tests {
};
use assert_matches::assert_matches;
use data_types::{
ColumnId, ColumnSet, CompactionLevel, NamespaceSchema, ParquetFileParams, PartitionId,
ColumnId, ColumnSet, CompactionLevel, ParquetFileParams, PartitionId,
PartitionKey, ShardIndex, Timestamp,
};
use iox_catalog::{interface::Catalog, mem::MemCatalog, validate_or_insert_schema};
use iox_catalog::{interface::Catalog, mem::MemCatalog};
use iox_time::SystemProvider;
use metric::{Attributes, Metric, MetricObserver, Observation};
use std::{ops::DerefMut, sync::Arc, time::Duration};
use std::{sync::Arc, time::Duration};
use uuid::Uuid;
const SHARD_INDEX: ShardIndex = ShardIndex::new(24);
@ -431,7 +431,6 @@ mod tests {
.create("foo", topic.id, query_pool.id)
.await
.unwrap();
let schema = NamespaceSchema::new(namespace.id, topic.id, query_pool.id, 100);
let w1 = make_write_op(
&PartitionKey::from("1970-01-01"),
@ -452,11 +451,6 @@ mod tests {
"test_table foo=1 10",
);
let _ = validate_or_insert_schema(w1.tables(), &schema, repos.deref_mut())
.await
.unwrap()
.unwrap();
// create some persisted state
let partition = repos
.partitions()