HaHaJeff commented on code in PR #224:
URL: https://github.com/apache/paimon-cpp/pull/224#discussion_r3855838354


##########
src/paimon/core/realtime/primary_key_realtime_store.h:
##########
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <memory>
+
+#include "paimon/realtime/realtime_store.h"
+
+namespace arrow {
+class Schema;
+}  // namespace arrow
+
+namespace paimon {
+
+class CoreOptions;
+class TableSchema;
+
+Status ValidatePrimaryKeyRealtimeOptions(const CoreOptions& options, const 
TableSchema& schema);
+

Review Comment:
   Addressed at current PR head `a7bc03b7b23c0302ad77d0e7312c0fb4da8a334c`. 
There is no global validation function and no standalone 
`PrimaryKeyRealtimeValidator`. Prepared transport-schema validation is a static 
method of `PreparedKeyValueReaderFactory`, while PK realtime table-option and 
key-type restrictions are handled by 
`PrimaryKeyTableUtils::ValidateRealtimeOptions`.



-- 
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