Skip to content

Commit

Permalink
Use lookup_key instead of key. (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurva authored Jun 4, 2024
1 parent 6a25e1d commit 568f1dc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion simple/stats/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

_CREATE_KEY_VALUE_STORE_TABLE = """
create table if not exists key_value_store (
key varchar(255),
lookup_key varchar(255),
value TEXT
);
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/+OS5OJMSdZP1w/Kzy8R4pHi4uKA8bjcEGwhKy4B59LikvxchbDEoszEpJzUYiEhLpayxCJDKTCpBCahYkZgMSOwmBEAlEss8mMAAAA=
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/+OS5OJMSdZP1w/Kzy8R4pHi4uKA8bjcEGwhKy4B59LikvxchbDEoszEpJzUYiEhLpayxCJDKTCpBCahYkZgMSOwmBEAlEss8mMAAAA=
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/32RT0vDQBDFKUiwjwp1UWs2KEvBo5RG8CIepFJPLVKleivbdKyBJBs3W7+EB7+yCdFG88fLzryZYXfeb3GFnjdYD+5JJyoaqU1k5qSN78mACXSnm3BJWqgXEZOKA+IdoBjHDLuZmill2Bjd0SYxKhRzqX25DCjhPRwW0zdr+rma242v4rOF46K3uKNoRfp8TKEMiCVw8rp48s2ryJviWny3H9FOVEiLd6mH/OAhTbfLiKGYypD69VWnXL2lxNN+bPzU5WWDC3aCvVQ20rn4rdgZrDzjDvYrBpmVR9hor7ZMOxwFYXy0cFQlM8mMv8Gu5TIpUXHLVNxaKm4tFfcPlbDOxTNYdQ/e/+dHrTzy00ZvO9n5BeXclHGoAgAA
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/+OS5OJMSdZP1w/Kzy8R4pHi4uKA8bjcEGwhKy4B59LikvxchbDEoszEpJzUYiEhLpayxCJDKTCpBCahYkZgMSOwmBEAlEss8mMAAAA=
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/wMAAAAAAAAAAAA=
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
key,value
lookup_key,value
StatVarGroups,H4sIAAAAAAAC/wMAAAAAAAAAAAA=
4 changes: 2 additions & 2 deletions simple/tests/stats/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def write_key_values(db_path: str, output_path: str):
"""
with sqlite3.connect(db_path) as db:
rows = db.execute("select * from key_value_store").fetchall()
pd.DataFrame(rows, columns=["key", "value"]).to_csv(output_path,
index=False)
pd.DataFrame(rows, columns=["lookup_key", "value"]).to_csv(output_path,
index=False)


class FakeGzipTime:
Expand Down

0 comments on commit 568f1dc

Please sign in to comment.