Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
45d52d4
feat(operator): read a timestamp cast over the years the engine reaches
kz930 Sep 18, 2026
c074933
fix(operator): read a timestamp that states an offset
kz930 Sep 19, 2026
ca67ce1
fix(operator): keep the resolution a timestamp column arrived in
kz930 Sep 21, 2026
189bf79
fix(operator): cut a timestamp read from text to the millisecond, and…
kz930 Sep 27, 2026
65f6620
docs(operator): note the JDK version a cast double's text follows
kz930 Oct 12, 2026
2b1dcf5
docs(operator): fold the double-digits note into the toString comment
kz930 Oct 12, 2026
46377a9
ci: re-run CI after a Maven Central download failure
kz930 Oct 12, 2026
d966535
fix(operator): write a stored NaN as text when casting a double to st…
kz930 Oct 13, 2026
1f15e15
fix(operator): cast a stored NaN to an integer or boolean as the engi…
kz930 Oct 13, 2026
5d46525
fix(operator): keep a NaN read as a double apart from null, and cast …
kz930 Oct 13, 2026
545b21c
fix(operator): read text and zoned columns before 1970 on Windows
kz930 Oct 13, 2026
7a3203d
fix(operator): read a timestamp with the offset its zone had at that …
kz930 Oct 14, 2026
f0eedd9
feat(translator): hand a Python operator its table the way pyamber does
kz930 Oct 16, 2026
ea3a1cf
fix(operator): fail on timestamp text the engine cannot parse
kz930 Oct 21, 2026
fa614ef
test(operator): expect a timestamp cast to refuse text it cannot read
kz930 Oct 21, 2026
64c04bd
feat(translator): emit only the helper functions a script calls
kz930 Oct 23, 2026
48f51ef
feat(workflow-operator): keep the cast helpers' notes out of the expo…
kz930 Oct 23, 2026
fd40dd9
feat(workflow-operator): keep the Python operator adapter's note out …
kz930 Oct 23, 2026
813dc0a
feat(workflow-operator): read a wall clock back into its instant in o…
kz930 Oct 25, 2026
0577fbb
feat(workflow-operator): read plain ISO timestamps in bulk
kz930 Oct 26, 2026
867d7cf
feat(translator): keep two blank lines between the script's helper bl…
kz930 Oct 26, 2026
e0689bf
feat(workflow-operator): write a holed LONG column as text without ro…
kz930 Oct 26, 2026
5d8d74d
feat(workflow-operator): clamp a LONG cast's double inside the cast i…
kz930 Oct 26, 2026
bd0de6c
feat(workflow-operator): separate exported helpers by one blank line
kz930 Oct 26, 2026
ddf8d16
feat(workflow-operator): format the LONG-to-text TypeCasting test
kz930 Oct 26, 2026
cd37a02
feat(workflow-operator): keep a moment's reading out of the text-to-t…
kz930 Oct 27, 2026
3f85c59
feat(workflow-operator): move a wall clock inside a daylight-saving g…
kz930 Nov 1, 2026
1ed5465
Merge remote-tracking branch 'upstream/main' into fix/8595-timestamp-…
kz930 Nov 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,43 @@ trait StandaloneCodeGenerator {
* to start.
*/
def standaloneImports(): Seq[String] = Seq.empty

/**
* A helper each input frame goes through before this operator's code runs,
* for an operator the engine hands its table in a different form than the
* script's upstream does. The translator defines it once and feeds the
* operator what it returns, leaving the upstream frame as it was.
*
* A Python operator runs in pyamber, which hands it a DOUBLE column as
* float64, where a NaN and a null are one value. A source can hand the script
* a Float64 column that keeps them apart, and an operator written against
* float64 then answers differently.
*/
def standaloneInputAdapter(): Option[StandaloneCodeGenerator.InputAdapter] =
this match {
case _: PythonOperatorDescriptor => Some(StandaloneCodeGenerator.PythonOperatorInput)
case _ => None
}
}

object StandaloneCodeGenerator {

/** A helper's name and the definition that binds it. */
final case class InputAdapter(name: String, definition: String)

/** `_texera_python_operator_input`: a copy with Float64 columns as float64, the way pyamber
* hands them over, so the upstream frame another operator reads stays as it was.
*/
val PythonOperatorInput: InputAdapter = InputAdapter(
"_texera_python_operator_input",
"""def _texera_python_operator_input(df):
| df = df.copy()
| for _c in df.columns:
| if isinstance(df[_c].dtype, (pd.Float64Dtype, pd.Float32Dtype)):
| df[_c] = df[_c].astype("float64")
| return df""".stripMargin
)

/**
* What a source writes where the file it reads should be named.
*
Expand Down
Loading
Loading