回答編集履歴

2

再修正

2020/11/24 12:08

投稿

bsdfan
bsdfan

スコア4574

test CHANGED
@@ -6,4 +6,6 @@
6
6
 
7
7
 
8
8
 
9
- redashのpythonデータソースは、RestrictedPythonというもが使われているようで、strptimeが使えるよになっていないのではないでしょうか。
9
+ `datetime.datetime.strptime`本体は`_strptime`といモジュールで定義されていので
10
+
11
+ redashの設定の読み込むモジュールに`_strptime`を追加する必要があるのかもしれません。

1

訂正

2020/11/24 12:08

投稿

bsdfan
bsdfan

スコア4574

test CHANGED
@@ -1,5 +1,9 @@
1
- この記事[https://qiita.com/inetcpl/items/ee27a44db3fed48620a3](https://qiita.com/inetcpl/items/ee27a44db3fed48620a3)と同じかもしれません。
1
+ ~~この記事[https://qiita.com/inetcpl/items/ee27a44db3fed48620a3](https://qiita.com/inetcpl/items/ee27a44db3fed48620a3)と同じかもしれません。~~
2
2
 
3
3
 
4
4
 
5
- 関数の中でimportしてみてはどうでしょう。
5
+ ~~関数の中でimportしてみてはどうでしょう。~~
6
+
7
+
8
+
9
+ redashのpythonデータソースは、RestrictedPythonというものが使われているようで、strptimeが使えるようになっていないのではないでしょうか。