Package net.hydromatic.optiq.tools

Examples of net.hydromatic.optiq.tools.ValidationException


        break;
      case "system":
        context.getOptions().getSystemManager().setOption(name, (SqlLiteral) value);
        break;
      default:
        throw new ValidationException("Invalid OPTION scope.  Scope must be SESSION or SYSTEM.");
      }

    }else{
      throw new ValidationException("Sql options can only be literals.");
    }

    return DirectPlan.createDirectPlan(context, true, String.format("%s updated.", name));

  }
View Full Code Here


      AbstractSchema tempSchema = getDrillSchema(drillSchema);
      WorkspaceSchema schema = null;
      if (tempSchema instanceof WorkspaceSchema) {
        schema = ((WorkspaceSchema)tempSchema);
      } else {
        throw new ValidationException("Unsupported schema");
      }

      // Get the file system object
      fs = schema.getFS();
View Full Code Here

          break;
//        case "query":
//          type = OptionValue.OptionType.QUERY;
//          break;
        default:
          throw new ValidationException("Invalid OPTION scope. Scope must be SESSION or SYSTEM.");
      }
      context.getOptions().setOption(name, (SqlLiteral) value, type);
    }else{
      throw new ValidationException("Sql options can only be literals.");
    }

    return DirectPlan.createDirectPlan(context, true, String.format("%s updated.", name));

  }
View Full Code Here

      AbstractSchema tempSchema = getDrillSchema(drillSchema);
      WorkspaceSchema schema = null;
      if (tempSchema instanceof WorkspaceSchema) {
        schema = ((WorkspaceSchema)tempSchema);
      } else {
        throw new ValidationException("Unsupported schema");
      }

      // Get the file system object
      fs = schema.getFS();
View Full Code Here

          break;
//        case "query":
//          type = OptionValue.OptionType.QUERY;
//          break;
        default:
          throw new ValidationException("Invalid OPTION scope. Scope must be SESSION or SYSTEM.");
      }
      context.getOptions().setOption(name, (SqlLiteral) value, type);
    }else{
      throw new ValidationException("Sql options can only be literals.");
    }

    return DirectPlan.createDirectPlan(context, true, String.format("%s updated.", name));

  }
View Full Code Here

TOP

Related Classes of net.hydromatic.optiq.tools.ValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.