@@ -6,19 +6,19 @@ import (
66
77type Project struct {
88 UnaryNode
9- expressions []sql.Expression
9+ Expressions []sql.Expression
1010}
1111
1212func NewProject (expressions []sql.Expression , child sql.Node ) * Project {
1313 return & Project {
1414 UnaryNode : UnaryNode {child },
15- expressions : expressions ,
15+ Expressions : expressions ,
1616 }
1717}
1818
1919func (p * Project ) Schema () sql.Schema {
2020 var s sql.Schema
21- for _ , e := range p .expressions {
21+ for _ , e := range p .Expressions {
2222 f := sql.Field {
2323 Name : e .Name (),
2424 Type : e .Type (),
@@ -33,7 +33,7 @@ func (p *Project) Resolved() bool {
3333}
3434
3535func (p * Project ) expressionsResolved () bool {
36- for _ , e := range p .expressions {
36+ for _ , e := range p .Expressions {
3737 if ! e .Resolved () {
3838 return false
3939 }
@@ -51,15 +51,15 @@ func (p *Project) RowIter() (sql.RowIter, error) {
5151
5252func (p * Project ) TransformUp (f func (sql.Node ) sql.Node ) sql.Node {
5353 c := p .UnaryNode .Child .TransformUp (f )
54- n := NewProject (p .expressions , c )
54+ n := NewProject (p .Expressions , c )
5555
5656 return f (n )
5757}
5858
5959func (p * Project ) TransformExpressionsUp (f func (sql.Expression ) sql.Expression ) sql.Node {
6060 c := p .UnaryNode .Child .TransformExpressionsUp (f )
6161 es := []sql.Expression {}
62- for _ , e := range p .expressions {
62+ for _ , e := range p .Expressions {
6363 te := e .TransformUp (f )
6464 es = append (es , te )
6565 }
@@ -78,7 +78,7 @@ func (i *iter) Next() (sql.Row, error) {
7878 if err != nil {
7979 return nil , err
8080 }
81- return filterRow (i .p .expressions , childRow ), nil
81+ return filterRow (i .p .Expressions , childRow ), nil
8282}
8383
8484func filterRow (expressions []sql.Expression , row sql.Row ) sql.Row {
0 commit comments