-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding go plugin as a new method in Computed (#87)
* update * newpatch * Abstract loader. * Use computed for all * Update with minor fix. * Update code , and test all * Support empty filter. * Delete comment * Update so, will complie it before test. * add missing dir. * Add go version info and sync stdout * Upgrade CI go version * Skip plugin test in CI Co-authored-by: YongHao Hu <[email protected]>
- Loading branch information
1 parent
829bfed
commit edc2d8e
Showing
38 changed files
with
590 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ testdata-* | |
.envrc | ||
logs/ | ||
*.venv | ||
talaria | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 27 additions & 81 deletions
108
internal/column/computed.go → internal/column/computed/computed.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package computed | ||
|
||
import ( | ||
"github.com/kelindar/talaria/internal/encoding/typeof" | ||
script "github.com/kelindar/talaria/internal/scripting" | ||
) | ||
|
||
type loadComputed struct { | ||
name string // Name of the column | ||
loader script.Handler | ||
typ typeof.Type | ||
} | ||
|
||
func (l *loadComputed) Name() string { | ||
return l.name | ||
} | ||
|
||
func (l *loadComputed) Type() typeof.Type { | ||
return l.typ | ||
} | ||
|
||
func (l *loadComputed) Value(row map[string]interface{}) (interface{}, error) { | ||
return l.loader.Value(row) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.