Examples of InvalidQueryException


Examples of org.apache.tajo.engine.exception.InvalidQueryException

      block.resolveGroupingRequired();
      block.getTargetListManager().resolveAll();

      return topUnion;
    } else {
      throw new InvalidQueryException("Not support grouping");
    }
  }
View Full Code Here

Examples of org.jboss.dna.graph.query.parse.InvalidQueryException

                        if (source == null) break;
                        String viewColumnName = column.getColumnName();
                        String sourceColumnName = column.getPropertyName(); // getColumnName() returns alias
                        Column sourceColumn = source.getColumn(sourceColumnName);
                        if (sourceColumn == null) {
                            throw new InvalidQueryException(Visitors.readable(command),
                                                            "The view references a non-existant column '"
                                                            + column.getColumnName() + "' in '" + source.getName() + "'");
                        }
                        viewColumns.add(new ImmutableColumn(viewColumnName, sourceColumn.getPropertyType(),
                                                            sourceColumn.isFullTextSearchable()));
                    }
                    if (viewColumns.size() != columns.size()) {
                        // We weren't able to resolve all of the columns,
                        // so maybe the columns were referencing yet-to-be-built views ...
                        continue;
                    }

                    // If we could resolve the definition ...
                    ImmutableView view = new ImmutableView(name, viewColumns, command);
                    definitions.remove(name);
                    schemata = schemata.with(view);
                    added = true;
                }
            } while (added && !definitions.isEmpty());

            if (!definitions.isEmpty()) {
                QueryCommand command = definitions.values().iterator().next();
                throw new InvalidQueryException(Visitors.readable(command), "The view definition cannot be resolved: "
                                                                            + Visitors.readable(command));
            }

            return schemata;
        }
View Full Code Here

Examples of org.jzkit.search.util.QueryModel.InvalidQueryException

        qm = new org.jzkit.search.util.QueryModel.CQLString.CQLString(args);
      else
        qm = new org.jzkit.search.util.QueryModel.PrefixString.PrefixString(args);

      if ( qm == null )
        throw new InvalidQueryException("Failed to parse "+querytype+" query");

      resp = sendSearch(qm, null, current_result_set_name, element_set_name);
    }
    catch ( Z3950Exception se )
    {
View Full Code Here

Examples of org.modeshape.jcr.query.parse.InvalidQueryException

        } else if (xpath instanceof PathExpression) {
            translate((PathExpression)xpath);
            return builder.query();
        }
        // unexpected component ...
        throw new InvalidQueryException(query,
                                        "Acceptable XPath queries must lead with a path expression or must be a union, intersect or except");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.