com.hazelcast.jet.sql.impl.validate.ValidatorResource Maven / Gradle / Ivy
/*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.jet.sql.impl.validate;
import com.hazelcast.org.apache.calcite.runtime.Resources;
import com.hazelcast.org.apache.calcite.runtime.Resources.BaseMessage;
import com.hazelcast.org.apache.calcite.runtime.Resources.ExInst;
import com.hazelcast.org.apache.calcite.sql.validate.SqlValidatorException;
public interface ValidatorResource {
ValidatorResource RESOURCE = Resources.create(ValidatorResource.class);
@BaseMessage("{0}")
ExInst error(String s);
@BaseMessage("{0} not supported")
ExInst notSupported(String name);
@BaseMessage("Unknown argument name ''{0}''")
ExInst unknownArgumentName(String name);
@BaseMessage("Multiple ordering functions are not supported")
ExInst multipleOrderingFunctionsNotSupported();
@BaseMessage("You must specify single ordering column")
ExInst mustUseSingleOrderingColumn();
@BaseMessage("UPDATE FROM SELECT not supported")
ExInst updateFromSelectNotSupported();
@BaseMessage("Comparison operators are not supported for ROW type")
ExInst rowTypeComparisonNotSupported();
static String imapNotMapped(String originalMessage, String identifier, String suggestion) {
return originalMessage + " If you want to use the IMap named '" + identifier + "', execute this command first: "
+ suggestion;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy