Sha256: 01ef432a2502039258ce6dd935543e71c056b2973c796ccb29343cde013e7abe

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

# when renaming is preserved
- alf: |-
    project(rename(suppliers, :sid => :id), [:id, :name])
  optimized: |-
    rename(project(suppliers, [:sid, :name]), :sid => :id)
# when renaming is preserved (allbut)
- alf: |-
    allbut(rename(suppliers, :sid => :id), [:city])
  optimized: |-
    rename(allbut(suppliers, [:city]), :sid => :id)
# when renaming is projected away
- alf: |-
    project(rename(suppliers, :sid => :id), [:name])
  optimized: |-
    project(suppliers, [:name])
# when renaming is partially projected away
- alf: |-
    project(rename(suppliers, :sid => :id, :name => :sname), [:sname])
  optimized: |-
    rename(project(suppliers, [:name]), :name => :sname)
# when renaming is projected away (allbut)
- alf: |-
    allbut(rename(suppliers, :sid => :id), [:id, :name])
  optimized: |-
    allbut(suppliers, [:sid, :name])
# when renaming is partially projected away (allbut)
- alf: |-
    allbut(rename(suppliers, :sid => :id, :name => :sname), [:id])
  optimized: |-
    rename(allbut(suppliers, [:sid]), :name => :sname)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.16.3 spec/optimizer/project/rename.yml
alf-0.16.2 spec/optimizer/project/rename.yml
alf-0.16.1 spec/optimizer/project/rename.yml
alf-0.16.0 spec/optimizer/project/rename.yml
alf-0.15.0 spec/optimizer/project/rename.yml