forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
559 stars 227 forks source link

Fix issue #709 and #710 #711

Closed maryannxue closed 10 years ago

maryannxue commented 10 years ago
  1. Make AliasedNode not inherit alias from its child node, so that aliasedNodeMap will only contain nodes with explicit alias. Thus, won't cause AmbiguousColumnException in ParseNodeRewriter.
  2. Keep original alias in ColumnParseNode replaced by IndexStatementRewriter
  3. In ExpressionProjector, use child node alias if AliasedNode has no explicit alias.
  4. Fix up alias of ColumnParseNode in join queries with full column name if table name is specified.