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
Marins-MBP:NetLogo Marin$ sbt | |
[info] Loading global plugins from /Users/Marin/.sbt/0.13/plugins | |
[info] Loading project definition from /Users/Marin/Documents/NetLogo/project | |
[info] Updating {file:/Users/Marin/Documents/NetLogo/project/}netlogo-build... | |
[info] Resolving org.eclipse.jgit#org.eclipse.jgit.archive;3.7.0.201502260915-r [info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-fccfbd44c9f64523b61398a0155784d[info] Resolving org.fusesource.jansi#jansi;1.4 ... | |
[info] Done updating. | |
java.lang.NullPointerException | |
at java.io.File.<init>(File.java:277) | |
at sbt.package$.file(package.scala:24) | |
at $1747e216ca710d968f9a$$anonfun$$sbtdef$1$$anonfun$apply$1.apply(/Users/Marin/Documents/NetLogo/project/build.sbt:6) |
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
def print_rows(conn_id, db_hook, **context): | |
hook = db_hook(conn_id) | |
rows = hook.get_records("SELECT COUNT(*) FROM movies") | |
logging.info(rows) |
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
class TransferPsqlToMysql(BaseOperator): | |
template_fields = ["sql"] | |
template_ext = [".sql"] | |
template_fields_renderers = {"sql": "sql"} | |
# pylint: disable=too-many-arguments | |
def __init__( | |
self, | |
postgres_conn_id, |
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
wildfires_dataset = Dataset("s3://locals3/datasets/test.csv") |