Skip to content

Commit

Permalink
fix(flink): remove broken, untested epochseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored and jcrist committed Sep 14, 2023
1 parent b7153ea commit f18c760
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ibis/backends/flink/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ def _timestamp_from_unix(translator: ExprTranslator, op: ops.Node) -> str:
def _extract_field(sql_attr: str) -> str:
def extract_field_formatter(translator: ExprTranslator, op: ops.Node) -> str:
arg = translator.translate(op.args[0])
if sql_attr == "epochseconds":
return f"UNIX_SECONDS({arg})"
else:
return f"EXTRACT({sql_attr} from {arg})"
return f"EXTRACT({sql_attr} from {arg})"

return extract_field_formatter

Expand Down

0 comments on commit f18c760

Please sign in to comment.